<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">欢迎光临！8888</span>
    <hr/>
    <a th:href="@{/commodity/toAdd}">新增</a>
    <table class="list">
        <tr>
            <th>id</th>
            <th>商品名称</th>
            <th>商品状态</th>
            <th>商品库存</th>
            <th>操作</th>
        </tr>
        <tr th:each="c : ${CList}">
            <td th:text="${c.cid}"></td>
            <td th:text="${c.cname}"></td>
            <td th:text="${c.cstart}"></td>
            <td th:text="${c.inventory}"></td>
            <td>
                <a th:href="@{/commodity/toUpdate(cid=${c.cid})}">修改</a>
                <a th:href="@{/commodity/del(cid=${c.cid})}">删除</a>
                <a >启用</a>
                <a th:href="@{/commodity/check(cid=${c.cid})}"> 提交审核 </a>
                <a >审核通过</a>
                <a >审核失败</a>
                <a th:href="@{/commodity/shangjia(cid=${c.cid})}">上架</a>
                <a th:href="@{/commodity/xiajia(cid=${c.cid})}">下架</a>
            </td>
        </tr>
    </table>
</div>



</body>
</html>
